package com.gemserk.infraestructure.lwjglmavenizer

class LWJGLJavadocGenerator {
	
	public File generateJavadoc(File baseDir){
		File generatedFile = new File(baseDir,"lwjgl-javadoc.jar")
		ZipUtils zutils = new ZipUtils()
		def zos
		try{
			zos = zutils.createZipFile(generatedFile)
			zutils.zipFromDir(new File(baseDir,"javadoc").getAbsolutePath(), zos)
		} finally {
			if(zos)
				zos.close()
		}
		
		return generatedFile
	}
}
